package com.newlink.building.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.newlink.building.common_base.model.bean.DoorData
import com.newlink.building.main.R

/**
 * Created by xiaodong on 2022/8/30.
 */
class Module_Main_LockListAdapter(data: MutableList<DoorData>) :
    BaseQuickAdapter<DoorData, BaseViewHolder>(R.layout.item_lock, data) {
    init {
        addChildClickViewIds(R.id.btn_lock_item)
    }

    override fun convert(holder: BaseViewHolder, item: DoorData) {
        holder.setText(R.id.btn_lock_item, item.doorName)
    }
}